/*
 * @Author: Starfish_DL
 * @Date: 2020-10-16 16:51:20
 * @LastEditors: Starfish_DL
 * @LastEditTime: 2020-10-16 16:52:03
 * @CurrentVersion: 1.0
 * @Description: 
 */

class Parent {
    protected String sName = "Tom";
    protected String sCourse = "Java";
    public Parent() {
        System.out.println(sName + " like " + sCourse);
    }
    public Parent(String sn, String sc) {
        this();
        System.out.println(sn + " like " + sc);
    }
}
public class Child extends Parent {
    protected String sName = "jack";
    protected String sCourse = "English";
    public Child(String sn, String sc) {
        super(sn, sc);
        System.out.println("What do you like?");
    }
    public Child() {
        System.out.println(sName + " like " + sCourse);
    }
    public static void main(String args[]) {
        Parent t = new Child("Max", "Math");
        System.out.println("I like " + t.sCourse);
    }
}